<?php
var_dump($_POST)
//对接收到的数据进行处理

function process()
{
    if(isset($_POST['stuname'])&&isset($_POST['stunumber'])&&isset($_['class'])&&isset($_POST['stuulr']))
    {
        return true;
    }
}
//检验用户输入数据
process();
//存取数据到数据库中

$dbc =mysql_connect('localhost','root','root','studend');//连接数据库

//设定连接器的编码规则
mysql_set_charset($dbc,'utf8mb4');

//连接SQL语句
INSERT INTO tablename (column4,column8) VALUES(valueX,valueY)
$sql = "INSERT INTO studend1(name,class,id,giturl) VALUES('".$_POST['stuname']."','".$_POST['stunumber']."','".$_POST['class']."','".$_POST['stuulr']."')";

//执行查询
$r = mysql_query($dbc,$query);

//释放资源



echo "<pre>";
var_dump($query,$r);
echo "</pre>";